package creatorMode.decorator;

public class defenseTroll implements Troll{
    private final Troll troll;

    public defenseTroll(Troll troll) {
        this.troll = troll;
    }

    @Override
    public void attack() {
        troll.attack();
    }

    @Override
    public int getAttackPower() {
        System.out.println("巨魔攻击力提高了20");
        return troll.getAttackPower()+20;
    }

    @Override
    public void fleeBattle() {
troll.fleeBattle();
    }
}
